package com.itheima.service.impl;

import com.itheima.dao.AccountLog;
import com.itheima.service.AccountLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author げっしょく
 * @date 2021/9/13
 */

@Service
public class AccountLogServiceImpl implements AccountLogService {

    @Autowired
    private AccountLog accountLog;

    public void insertLog(String inName, String outName, Double menoy) {
        String info = outName + "成功向" + inName + "转帐" + menoy + "元";
        accountLog.insertLog(outName + "成功向" + inName + "转帐" + menoy + "元");


    }


    public void insertLose(String inName, String outName, Double menoy) {
        accountLog.insertLog(outName + "向" + inName + "转帐失败.  金额是：" + menoy + "元");
    }
}
